package com.hyf.weekindicator;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
import android.widget.Toast;

import com.hyf.weekindicator.support.WeekIndicatorView;

public class BindNormalActivity extends AppCompatActivity {

    private WeekIndicatorView weekIndicatorView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_bind_normal);
        weekIndicatorView = findViewById(R.id.normal_week_indicator);

        weekIndicatorView.init(Constant.titles,0, new WeekIndicatorView.OnItemClickListener() {
            @Override
            public void onItemClick(TextView textView, int position) {
                Toast.makeText(BindNormalActivity.this, textView.getText().toString(), Toast.LENGTH_SHORT).show();
            }
        }).indicatorColor(getResources().getColor(R.color.colorPrimary)).build();
    }
}
